<%-- 
    Document   : photo
    Created on : 06 1, 11, 7:13:14 PM
    Author     : Lee
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            String s = ServletActionContext.getRequest().getRealPath("/");
            String[] split = s.split("\\\\");
            ArrayList<String> path = new ArrayList<String>();
            StringBuffer sb = new StringBuffer();
            sb.append("res/documentimages/");
            String type = request.getParameter("type");
            String filename = request.getParameter("fn");
            sb.append(type + "/");
            sb.append(filename);
            String filePath1 = sb.toString();
            System.out.println(sb.toString());
        %>
        <img src="<%= filePath1%>" alt="<%= filename%>">
    </body>
</html>
